package com.fenghongzhang.module_main.ui.search

import com.fenghongzhang.module_main.api.ApiService
import kotlinx.coroutines.flow.flow
import javax.inject.Inject

class SearchRepository @Inject constructor() {
    @Inject
    lateinit var apiService: ApiService

    fun getSearchHotData() = flow {
        emit(apiService.getSearchHotData())
    }

    fun getSearchSuggestion(keyWord: String) = flow {
        emit(apiService.searchKeyword(keyWord))
    }
}